<include file="__THEME__/header" />
<link href="../Public/css/photo.css" rel="stylesheet" type="text/css" />
<!-- 头部 end -->
<div class="content"><!-- 内容 begin  -->
	<include file="__THEME__/apps" />
	<div class="main"> <!-- 右侧内容 begin  -->

		<div class="page_title"> <!-- page_title begin -->
			<h2><img src="{$APPINFO['APP_ICON']}" />{$APPINFO['APP_CNNAME']}</h2>
		<div class="c"></div>
</div><!-- page_title end -->

		<div class="tab-menu"><!-- 切换标签 begin  -->
			<ul>
				<li><a href="__APP__/Index/friends_photos" class="on"><span>好友的照片</span></a></li>
				<li><a href="__APP__/Index/photos/uid/{$mid}"><span>我的照片</span></a></li>
				<li><a href="__APP__/Index/all_photos"><span>大家的照片</span></a></li>
                <li><a href="__APP__/Upload/flash"><span><div class="ico_add">&nbsp;</div>上传照片</span></a></li>
			</ul>
		</div><!-- 切换标签 end  -->

		<div class="photoBox">
			<div class="MenuSub"><a href="__URL__/friends_photos">最新照片</a> ┊ 最新相册 ┊
		    <a href="__URL__/friends_photos/order/readCount/">最多观看</a> ┊ 
            <a href="__URL__/friends_photos/order/commentCount/">最多回应</a><!--  ┊ <a href="__URL__/friends_marked">圈有好友的{$APPINFO['APP_CNNAME']}</a> --></div>
			<div class="falbumlist">
				<ul>
				<volist name="data.data" id="li">
				<li class="bg04">
				<div class="box">
					<div class="c1"><span class="photo140"><a href="__APP__/Index/album/id/{$li.id}/uid/{$li.userId}"><img src="{$li.id|get_album_cover}" alt="{$li.name}" /></a></span></div>
					<div class="c2">
					<dl>
						<dt>
							<span class="right">
								<eq name="li.share" value="1">
								<input type="button" value="分享" class="BtnShare" onclick="sharePop('{$li.id}','__URL__','album')" id="BtnShare_{$li.id}"/>
								</eq>
							</span>
							<a href="__APP__/Index/album/id/{$li.id}/uid/{$li.userId}" class="OverH" style="width:140px; display:block;"><strong>{$li.name}</strong></a>
						</dt>
						<dd><a href="__TS__/space/{$li.userId}">{$li.userId|getUserName}</a></dd>
						<dd>共{$li.photoCount}张</dd>
						<dd>{$li.mTime|friendlyDate}更新</dd>
                        <dd><php>if(in_array($li['privacy'],array('2','3','4'))){</php><img src="../Public/images/photo_ico_bgk.gif" width="13" height="12" />&nbsp;<php>}</php><em>{:date('Y年m月d日',$li['cTime'])}创建</em></dd>
					</dl>
					</div>
				</div>
				</li>
				</volist>
				</ul>
			</div><!-- fphotolist end  -->
		</div>
		<div style="clear:both">&nbsp;</div>
		<div class="page">{$data.html}</div>
  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
  </div><!-- 内容 end -->
<include file="__THEME__/footer" />
<script>
function sharePop(id,url,type){
	var classId = '#BtnShare_'+id;
	$(classId).attr('disabled','true');

	$.post(url+"/addShare_check/", {aimId:id,type:type}, function(txt){
		   if(txt==1){
			   ymPrompt.win(url+'/addShare/aimId/'+id+'/type/'+type,500,'315','分享',null,null,null,{id:'a'});
		   }else if(txt==-1){
			   ymPrompt.errorInfo('请不要分享自己发布的东西!');
		   }else if(txt==-2){
			   ymPrompt.errorInfo('您已经分享过,请不要重复分享!');
		   }else if(txt==-3){
			   ymPrompt.errorInfo('您没有权限分享!');
		   }else{
			   ymPrompt.errorInfo('参数出错,请重试!');
		   }
		   
		   $(classId).attr('disabled','');
	});
}
</script>